package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 
 * @TableName maintenance_record
 */
@TableName(value ="maintenance_record")
public class MaintenanceRecord implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    @JsonProperty("AcceptancePersonnel")
    private String acceptancepersonnel;

    /**
     * 
     */
    @JsonProperty("AcceptanceTime")
    private String acceptancetime;

    /**
     * 
     */
    @JsonProperty("CompletionTime")
    private String completiontime;

    /**
     * 
     */
    @JsonProperty("ConsumableExpenses")
    private String consumableexpenses;

    /**
     * 
     */
    @JsonProperty("CreationDate")
    private String creationdate;

    /**
     * 
     */
    @JsonProperty("Department")
    private String department;

    /**
     * 
     */
    @JsonProperty("Explain")
    private String explain;

    /**
     * 
     */
    @JsonProperty("OrderAcceptanceTime")
    private String orderacceptancetime;

    /**
     * 
     */
    @JsonProperty("RepairerMan")
    private String repairerman;

    /**
     * 
     */
    @JsonProperty("RepairLocation")
    private String repairlocation;

    /**
     * 
     */
    @JsonProperty("RepairPersonnel")
    private String repairpersonnel;

    /**
     * 
     */
    @JsonProperty("ReportedRepairContentDown")
    private String reportedrepaircontentdown;

    /**
     * 
     */
    @JsonProperty("ReportedRepairContentUp")
    private String reportedrepaircontentup;

    /**
     * 
     */
    @JsonProperty("SinglePersonReception")
    private String singlepersonreception;

    /**
     * 
     */
    @JsonProperty("Code")
    private String code;

    /**
     * 
     */
    @JsonProperty("RecordsState")
    private String recordsstate;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String trainingid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getAcceptancepersonnel() {
        return acceptancepersonnel;
    }

    /**
     * 
     */
    public void setAcceptancepersonnel(String acceptancepersonnel) {
        this.acceptancepersonnel = acceptancepersonnel;
    }

    /**
     * 
     */
    public String getAcceptancetime() {
        return acceptancetime;
    }

    /**
     * 
     */
    public void setAcceptancetime(String acceptancetime) {
        this.acceptancetime = acceptancetime;
    }

    /**
     * 
     */
    public String getCompletiontime() {
        return completiontime;
    }

    /**
     * 
     */
    public void setCompletiontime(String completiontime) {
        this.completiontime = completiontime;
    }

    /**
     * 
     */
    public String getConsumableexpenses() {
        return consumableexpenses;
    }

    /**
     * 
     */
    public void setConsumableexpenses(String consumableexpenses) {
        this.consumableexpenses = consumableexpenses;
    }

    /**
     * 
     */
    public String getCreationdate() {
        return creationdate;
    }

    /**
     * 
     */
    public void setCreationdate(String creationdate) {
        this.creationdate = creationdate;
    }

    /**
     * 
     */
    public String getDepartment() {
        return department;
    }

    /**
     * 
     */
    public void setDepartment(String department) {
        this.department = department;
    }

    /**
     * 
     */
    public String getExplain() {
        return explain;
    }

    /**
     * 
     */
    public void setExplain(String explain) {
        this.explain = explain;
    }

    /**
     * 
     */
    public String getOrderacceptancetime() {
        return orderacceptancetime;
    }

    /**
     * 
     */
    public void setOrderacceptancetime(String orderacceptancetime) {
        this.orderacceptancetime = orderacceptancetime;
    }

    /**
     * 
     */
    public String getRepairerman() {
        return repairerman;
    }

    /**
     * 
     */
    public void setRepairerman(String repairerman) {
        this.repairerman = repairerman;
    }

    /**
     * 
     */
    public String getRepairlocation() {
        return repairlocation;
    }

    /**
     * 
     */
    public void setRepairlocation(String repairlocation) {
        this.repairlocation = repairlocation;
    }

    /**
     * 
     */
    public String getRepairpersonnel() {
        return repairpersonnel;
    }

    /**
     * 
     */
    public void setRepairpersonnel(String repairpersonnel) {
        this.repairpersonnel = repairpersonnel;
    }

    /**
     * 
     */
    public String getReportedrepaircontentdown() {
        return reportedrepaircontentdown;
    }

    /**
     * 
     */
    public void setReportedrepaircontentdown(String reportedrepaircontentdown) {
        this.reportedrepaircontentdown = reportedrepaircontentdown;
    }

    /**
     * 
     */
    public String getReportedrepaircontentup() {
        return reportedrepaircontentup;
    }

    /**
     * 
     */
    public void setReportedrepaircontentup(String reportedrepaircontentup) {
        this.reportedrepaircontentup = reportedrepaircontentup;
    }

    /**
     * 
     */
    public String getSinglepersonreception() {
        return singlepersonreception;
    }

    /**
     * 
     */
    public void setSinglepersonreception(String singlepersonreception) {
        this.singlepersonreception = singlepersonreception;
    }

    /**
     * 
     */
    public String getCode() {
        return code;
    }

    /**
     * 
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 
     */
    public String getRecordsstate() {
        return recordsstate;
    }

    /**
     * 
     */
    public void setRecordsstate(String recordsstate) {
        this.recordsstate = recordsstate;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaintenanceRecord other = (MaintenanceRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAcceptancepersonnel() == null ? other.getAcceptancepersonnel() == null : this.getAcceptancepersonnel().equals(other.getAcceptancepersonnel()))
            && (this.getAcceptancetime() == null ? other.getAcceptancetime() == null : this.getAcceptancetime().equals(other.getAcceptancetime()))
            && (this.getCompletiontime() == null ? other.getCompletiontime() == null : this.getCompletiontime().equals(other.getCompletiontime()))
            && (this.getConsumableexpenses() == null ? other.getConsumableexpenses() == null : this.getConsumableexpenses().equals(other.getConsumableexpenses()))
            && (this.getCreationdate() == null ? other.getCreationdate() == null : this.getCreationdate().equals(other.getCreationdate()))
            && (this.getDepartment() == null ? other.getDepartment() == null : this.getDepartment().equals(other.getDepartment()))
            && (this.getExplain() == null ? other.getExplain() == null : this.getExplain().equals(other.getExplain()))
            && (this.getOrderacceptancetime() == null ? other.getOrderacceptancetime() == null : this.getOrderacceptancetime().equals(other.getOrderacceptancetime()))
            && (this.getRepairerman() == null ? other.getRepairerman() == null : this.getRepairerman().equals(other.getRepairerman()))
            && (this.getRepairlocation() == null ? other.getRepairlocation() == null : this.getRepairlocation().equals(other.getRepairlocation()))
            && (this.getRepairpersonnel() == null ? other.getRepairpersonnel() == null : this.getRepairpersonnel().equals(other.getRepairpersonnel()))
            && (this.getReportedrepaircontentdown() == null ? other.getReportedrepaircontentdown() == null : this.getReportedrepaircontentdown().equals(other.getReportedrepaircontentdown()))
            && (this.getReportedrepaircontentup() == null ? other.getReportedrepaircontentup() == null : this.getReportedrepaircontentup().equals(other.getReportedrepaircontentup()))
            && (this.getSinglepersonreception() == null ? other.getSinglepersonreception() == null : this.getSinglepersonreception().equals(other.getSinglepersonreception()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getRecordsstate() == null ? other.getRecordsstate() == null : this.getRecordsstate().equals(other.getRecordsstate()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAcceptancepersonnel() == null) ? 0 : getAcceptancepersonnel().hashCode());
        result = prime * result + ((getAcceptancetime() == null) ? 0 : getAcceptancetime().hashCode());
        result = prime * result + ((getCompletiontime() == null) ? 0 : getCompletiontime().hashCode());
        result = prime * result + ((getConsumableexpenses() == null) ? 0 : getConsumableexpenses().hashCode());
        result = prime * result + ((getCreationdate() == null) ? 0 : getCreationdate().hashCode());
        result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
        result = prime * result + ((getExplain() == null) ? 0 : getExplain().hashCode());
        result = prime * result + ((getOrderacceptancetime() == null) ? 0 : getOrderacceptancetime().hashCode());
        result = prime * result + ((getRepairerman() == null) ? 0 : getRepairerman().hashCode());
        result = prime * result + ((getRepairlocation() == null) ? 0 : getRepairlocation().hashCode());
        result = prime * result + ((getRepairpersonnel() == null) ? 0 : getRepairpersonnel().hashCode());
        result = prime * result + ((getReportedrepaircontentdown() == null) ? 0 : getReportedrepaircontentdown().hashCode());
        result = prime * result + ((getReportedrepaircontentup() == null) ? 0 : getReportedrepaircontentup().hashCode());
        result = prime * result + ((getSinglepersonreception() == null) ? 0 : getSinglepersonreception().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getRecordsstate() == null) ? 0 : getRecordsstate().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", acceptancepersonnel=").append(acceptancepersonnel);
        sb.append(", acceptancetime=").append(acceptancetime);
        sb.append(", completiontime=").append(completiontime);
        sb.append(", consumableexpenses=").append(consumableexpenses);
        sb.append(", creationdate=").append(creationdate);
        sb.append(", department=").append(department);
        sb.append(", explain=").append(explain);
        sb.append(", orderacceptancetime=").append(orderacceptancetime);
        sb.append(", repairerman=").append(repairerman);
        sb.append(", repairlocation=").append(repairlocation);
        sb.append(", repairpersonnel=").append(repairpersonnel);
        sb.append(", reportedrepaircontentdown=").append(reportedrepaircontentdown);
        sb.append(", reportedrepaircontentup=").append(reportedrepaircontentup);
        sb.append(", singlepersonreception=").append(singlepersonreception);
        sb.append(", code=").append(code);
        sb.append(", recordssate=").append(recordsstate);
        sb.append(", userid=").append(userid);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}